[SOLVED] xterm not reading ~/.Xresources
Apparently, .Xresources is the new file of choice for x-clients and .Xdefaults is deprecated, at least so I read on the internetz. I have tried the following in my .Xresources:
xterm*background:Black
xterm*foreground:Green
but not luck. A quick "$ strace -eopen xterm" reveals that xterm doesn't even bother reading that file anymore, but rather prefers ~/.Xdefaults-arch ???
I am thinking lol wut, What is up with that? Anyone know why xterm is behaving that way?
Anyone got xterm to work with ~/.Xresources?
Last edited by awayand (2011-06-13 18:23:10)
As far as I know, you have to use xorg-xrdb. execute xrdb -merge ~/.Xresources, e. g. in your .xinitrc, depending on how you are starting your wm. It is also not mandatory to use .Xresources. In my xinitrc I'm using the following:
xrdb -merge << "EOF"
URxvt*font:xft:monospace:size=12
URxvt*scrollBar:false
EOF
Similar Messages
-
[SOLVED] xrdb not reading .Xresources at boot
spent a few hours trying to figure this out yesterday to no avail but still learned alot.
so in my home folder I have .Xresources file:
! terminal colors ------------------------------------------------------------
! tangoesque scheme
*background: #111111
*foreground: #babdb6
! Black (not tango) + DarkGrey
*color0: #000000
*color8: #555753
! DarkRed + Red
*color1: #ff6565
*color9: #ff8d8d
! DarkGreen + Green
*color2: #93d44f
*color10: #c8e7a8
! DarkYellow + Yellow
*color3: #eab93d
*color11: #ffc123
! DarkBlue + Blue
*color4: #204a87
*color12: #3465a4
! DarkMagenta + Magenta
*color5: #ce5c00
*color13: #f57900
!DarkCyan + Cyan (both not tango)
*color6: #89b6e2
*color14: #46a4ff
! LightGrey + White
*color7: #cccccc
*color15: #ffffff
I also made a .xinitrc file in my home directory:
xrdb -merge ~/.Xresources
my problem is after boot I still have to manually use xrdb ~/.Xresources to have my .Xresources file to run.
I know there is a lot on Google about this but I read through a large amount trying to get it to work. Apparently there are various problems and they depended up how your Desktop Manager starts the X environment.
I am using LXDE (desktop manager) and openbox (windowd manager). At login I am greated with a login splash screen that takes me into my LXDE environment... I just can't figure out how to force startx to trigger the reading of my .Xresources file.
I made sure all files were not made as root and they have the proper permissions including being ecexcutable.
However my boot is configured, the .Xresources is simply not getting run through xrdb as doing it manually after boot workds perfectly...
The arch wiki reads: "are using a Display Manager t log into X. Most DM will autoload the ~/.Xresources file on login"
So is this more a lxde question?
Another blog I read said that LXDE may not read .Xresources automatically thus the need for the .xinitrc file.... I followed those instructions as well to no avail:
create .xinitrc
chmod +x .xinitrc
add xrdb -load ~/.Xresources &
to the .xinitrc file
... did not work for my setup
at this point I am at a loss.
Any help would be greatly appreciated.
Last edited by soulrainX (2013-03-21 13:05:53)Welcome!
Have you tried adding the command to Openbox' autostart.sh file? I don't know exactly how it's called, but it's usually placed in $XDG_CONFIG_HOME/openbox/ and if everything works correctly, it is executed upon starting Openbox.
EDIT
... and having read the comment below, yes, please use code tags. It confused me at first whether you were literally typing 'add' and 'create' as commands in your shell or not.
Last edited by ayekat (2013-03-21 11:56:01) -
[SOLVED:] SLIM not reading slim.conf (no password auto-focus)
Yesterday I began having issues with SLIM. I'm not sure if they're related, but while running Puppy , I inadvertently deleted the desktop icon for my Arch home directory on /dev/sda8. I rebooted Puppy and it reappeared. After running Puppy, something went wrong with my clocks (system and hardware) and the times were all wrong. I fixed that with NTPD. I currently dual boot Arch and Windows 7 from the hard drive, and occasionally from a USB stick, Puppy Linux. I'm using an ASUS K50IJ laptop. I run Xfce4. I do not have any disk encryption enabled.
When I boot up, the SLIM login appears as normal, but rather than password auto-focus, I'm prompted for a username. If I enter the username and hit return, I'm still staring at the username prompt. After three or four iterations of entering a username + enter, I finally get a password prompt and can log in.
I have tried:
1. Reinstalling archlinux-themes-slim
2. Uninstalling archlinux-themes-slim and slim, then reinstalling slim
3. Removing old Xfce4 & Xfwm sessions
4. Removing slim.conf and entering a pristine version.
5. Reviewing /var/log/slim.log files for oddities. I found one:
Before the trouble started, I the message in the log was:
slim: waiting for X server to begin accepting connections
X.Org X Server 1.12.2
Release Date: 2012-05-29
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.0.32-1-lts x86_64
Current Operating System: Linux asus 3.4.4-2-ARCH #1 SMP PREEMPT Sun Jun 24 18:5
9:47 CEST 2012 x86_64
Kernel command line: root=/dev/sda4 ro
Build Date: 30 May 2012 07:24:13PM
Current version of pixman: 0.26.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul 8 15:30:48 2012
(==) Using config directory: "/etc/X11/xorg.conf.d"
/usr/bin/xauth: file /home/rasteenb/.Xauthority does not exist
/usr/bin/startxfce4: X server already running on display :0.0
Now I get:
slim: waiting for X server to begin accepting connections.slim: unexpected signal 15
slim: waiting for X server to begin accepting connections.
slim: System is booting up.
slim: pam_authentication(): Authentication failure
slim: System is booting up.
slim: pam_authentication(): Authentication failure
slim: System is booting up.
slim: pam_authentication(): Authentication failure
slim: System is booting up.
slim: pam_authentication(): Authentication failure
slim: System is booting up.
slim: pam_authentication(): Authentication failure
Now I'm stumped.
Rob
Last edited by rasteenb (2012-07-17 11:16:03)I solved this - slim was not the last daemon I started in rc.conf. By moving it to the end, I get password auto-focus and everything works.
Now my rc.conf looks like
# DAEMONS
DAEMONS=(syslog-ng dbus acpid @network @wicd @openntpd @cupsd @crond slim)
I found this recommendation in the Display Manager wiki page while researching the problem:
Ensure you start the display manager last in the DAEMONS array, otherwise X will later allocate a tty device which was previously claimed by Getty (see /etc/inittab). Not placing the display manager at the end can cause X crashes, and is therefore unsupported.
I'd just been lucky before that there wasn't a conflict.
There is a "flicker" during login where I'm shown the XFCE splash, then the SLIM splash again, then the XFCE desktop. Not sure what's going on there, but it's no big deal.
Cheers,
Rob -
I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?
By doing a Google search.
-
My MacBook Pro does not read NTFS format, how can I solve this problem?
I connected my external Hard drive to my Mac and it gives the error abou not reading the NTFS files... is there an app that can solve this problem?
Thanks a lotYou can take the drive to a PC, off load the files and right click and format the drive exFAT or FAT and place the files back on, then the Mac can read it.
If you install NTFS reading software on your Mac, you will always be paying for it and it's updates, breaks your connections to the hard drive as well.
Neutral formats are best, proprietary ones that require one to pay is bad.
Drives, partitions, formatting w/Mac's + PC's -
Yesterday my iphone opened itself i hit the sleep button . After15 seconds it opened again ,a messege appeares for a fraction of a seconed i could not read it and i tried to shoot it but i couldn't .from yesterday this is the 3rd time that i recharge my iphone .
Hey saandyy,
Thanks for using Apple Support Communities.
You can try to restart the iPhone to exit recovery mode.
Turn your iOS device off and on (restart) and reset
http://support.apple.com/kb/HT1430
If you can't update or restore your iOS device
http://support.apple.com/kb/ht1808
Recovery mode erases your device and restores it, which should resolve the issue. If you previously synced with iTunes or iCloud, you may be able to restore from your backup after recovery.
Have a nice day,
Mario -
[SOLVED] VIM not displaying many glyphs
I'm struggling to get the full glyph set to display in VIM. Particularly missed are the mathematical super- and sub-script. I've worked on the problem and tried various fixes for displaying UTF-8 characters without success.
(Code block bad form? Ok T. IMHO. There's that type of post where the OP doesn't know why something isn't working and they quote a dump truck of details, even though they're not sure what's relevant and what isn't. And the longer the quote, the harder it is to figure out what they're doing wrong. I didn't want to be that guy. I was hiding the verbosity, in the event my font problems are simpler than I've made it.)
1) Applied settings from these WIKI pages:
Fonts
Xterm
2) Apps I've installed
$ pacman -Qs font
local/dina-font 2.92-4
A monospace bitmap font, primarily aimed at programmers
local/fontconfig 2.11.1-1
A library for configuring and customizing font access
local/fontsproto 2.1.3-1
X11 font extension wire protocol
local/freetype2 2.5.3-2
TrueType font rendering library
local/gsfonts 1.0.7pre44-4
Standard Ghostscript Type1 fonts from URW
local/libfontenc 1.1.2-1
X11 font encoding library
local/libotf 0.9.13-2
OpenType Font library
local/libxfont 1.4.7-3
X11 font rasterisation library
local/libxft 2.3.2-1
FreeType-based font drawing library for X
local/t1lib 5.1.2-5
Library for generating character- and string-glyphs from Adobe Type 1 fonts
local/tamsyn-font 1.10-1
A monospaced bitmap font for the console and X11
local/terminus-font 4.39-1
Monospace bitmap font (for X11 and console)
local/ttf-bitstream-vera 1.10-10
Bitstream vera fonts
local/ttf-droid 20121017-3
General-purpose fonts released by Google as part of Android
local/xorg-bdftopcf 1.0.4-2 (xorg xorg-apps)
Convert X font from Bitmap Distribution Format to Portable Compiled Format
local/xorg-font-util 1.3.0-2 (xorg-fonts xorg)
X.Org font utilities
local/xorg-font-utils 7.6-4
Transitional package depending on xorg font utilities
local/xorg-fonts-100dpi 1.0.1-5 (xorg)
X.org 100dpi fonts
local/xorg-fonts-alias 1.0.3-1
X.org font alias files
local/xorg-fonts-encodings 1.0.4-4 (xorg-fonts xorg)
X.org font encoding files
local/xorg-fonts-misc 1.0.1-3
X.org misc fonts
local/xorg-fonts-type1 7.4-3
X.org Type1 fonts
local/xorg-mkfontdir 1.0.7-2 (xorg xorg-apps)
Create an index of X font files in a directory
local/xorg-mkfontscale 1.1.1-1 (xorg-apps xorg)
Create an index of scalable font files for X
3) A forum search found some common issues:
unicode symbols not working in my terminal
$ localectl
System Locale: LANG=en_US.UTF-8
LC_COLLATE=C
VC Keymap: US
X11 Layout: n/a
$ locale -a
C
en_US.utf8
POSIX
$ echo $TERM
xterm-256color
4) ~/.Xresources
! wiki.archlinux.org/.../Xterm
xterm*termName: xterm-256color
xterm*locale: true
xterm*saveLines: 4096
xterm*bellIsUrgent: false
xterm*VT100.geometry: 80x25
xterm*faceName: Droid:style=Regular:size=12
xterm*dynamicColors: true
xterm*utf8: 2
xterm*toolBar: false
5) ~/.xinitrc
# X11 Fonts
xset +fp /usr/share/fonts
Last edited by xtian (2014-07-27 14:43:23)Linux fonts are a muddle. Consoles can only display 256 characters, maybe 512. You simply cannot display many texts in a console. To navigate through the font mess in X, you need some familiarity with fontconfig. Xft uses fontconfig to select fonts. Fontconfig documentation is not user-friendly.
Droid is a family of fonts. My installation of the Droid family includes 27 different fonts. The command fc-list will list fonts matching a pattern. I usually filter the output by piping through grep. To list the Droid fonts, file name first followed by the fontconfig name, I use:
$ fc-list | grep Droid
Your fc-match results for Droid are from fontconfig doing its best to give you a readable display. Fontconfig cannot find a matching font for the name 'Droid', so it falls back to a "safe" font, 'Bitstream Vera Sans'.
XTerm or UXTerm or URxvt
I have my locale correctly configured, I think. I do not see any real advantage for uxterm over xterm. In my X resources, I include the lines,
xterm*termName: xterm-256color
XTerm*locale: true
For good glyph coverage with xterm, I have found 'DejaVu Sans Mono' to be among the better fonts. If I truly need utf8 coverage, I use urxvt. Urxvt allows one to use a ladder of fonts. If the character is not found in the first font listed, urxvt will search through the other listed fonts until it finds a glyph that can be displayed.
urxvt*font: xft:DejaVu Sans Mono:style=Book:antialias=false:size=8, \
xft:WenQuanYi Bitmap Song:size=8, \
xft:FreeSerif:style=Regular, \
xft:unifont:style=Medium:antialias=false
Here's a screenshot with three xterms using Droid, DejaVu Sans Mono, and Liberation Mono, plus one urxvt using the fonts in the code above. They all show the same portion of Markus Kuhn's utf8 test text. -
[SOLVED] XTerm and the Terminus font
I having difficulty getting the Terminus font to display correctly in xterm.
In .Xresources;
When I use "xterm*faceName:Terminus:style=Regular:size=10" I get missing characters, like the curly quotes in man pages. This line is from the wiki.
When I use "xterm*font:-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*" there are no missing characters (that I've found). However, the display output (like paging a text file, for example) is much slower. Too slow, so I go back to the missing characters config.
One other issue I've noticed, which may be related. When I use the control-mousebutton menus, they display very slowly taking 2 or 3 seconds to draw. This happens even without loading my .Xresources file.
Also note I'm using fontconfig-infinality-ultimate.
My complete .Xresources file:
xterm*Background:black
xterm*Foreground:white
xterm*cursorColor:green
!xterm*pointerShape:arrow
!xterm*pointerColor:blue
xterm*VT100.geometry:80x32
xterm*faceName:Terminus:style=Regular:size=10
!xterm*font:-*-terminus-medium-*-*-*-14-*-*-*-*-*-*-*
!xterm*faceName:Inconsolata:style=Regular:size=11
!xterm*font:-*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
!xterm*renderFont:false
xterm*dynamicColors:true
xterm*utf8:2
xterm*eightBitInput:true
xterm*saveLines:4096
xterm*scrollKey:true
xterm*scrollTtyOutput:false
xterm*scrollBar:true
xterm*rightScrollBar:true
xterm*jumpScroll:true
xterm*multiScroll:true
xterm*toolBar:false
xterm*locale:true
xterm*termName:xterm-256color
xterm*metaSendsEscape:true
Last edited by mixer (2013-09-03 03:56:33)mixer wrote:
Switching to rxvt-unicode (plus rxvt-unicode-terminfo) fixed my problem with speed and missing Terminus characters. I'm using the setting:
URxvt*font:xft:Terminus:pixelsize=14
The part that I don't understand is, if I specify my font as follows I get all the characters but slow display:
URxvt*font:-*-terminus-medium-r-normal-*-16-*-*-*-*-*-iso10646-*
You commented that this flavor (the XLFD form) is slow with both xterm and urxvt.
As I noted, the problem is in how the server handles the fonts.
urxvt's equivalent to xterm's "-fa" option is a feature introduced by konsole (a "xft:" prefix on the string).
Actually you don't get "all" of the characters. To see this, use xfd. The 10646 encoding appears to be the
original terminus (a small set of 256 characters) with a few others added. But most of the 0-65535 range is
filled with a filler-character. -
Getting the message "your mail could not be moved to trash", and keeps reappearing as not read or deleted.
Did you have Hotmail set-up with Android prior? I did, and if you did too, you have the same problem, and this is how to solve it.
From your desktop computer, the Hotmail (or Outlook) website uses the folder "Deleted" for your deleted messages as default. On your iPhone, the deleted folder's name by default is "Trash".
When I had my Hotmail with Android, it created a folder Trash for deleted messages, and it's creation was amongst all my folders. So when you go back and look at Hotmail from your desktop, you will see a folder Trash, in addition to the default Deleted. My Trash folder had all the emails I deleted from my Android.
That said, with the manual folder Trash that was created, when trying to set-up Hotmail now on iPhone, because I already had a folder Trash, it conflicted with the default "Trash" folder it wanted to created, so it didn't create it, being the reason why you can't delete emails, because it doesn't have the defaulted "Trash" folder to go to.
The solution is to delete the folder "Trash" from your desktop, uninstall Hotmail from your iPhone, and re-install, and it worked, the defaulted "Trash" was then created, alongside the "Sent" and "Junk". -
I'm having a problem getting Media Encoder to get past the dynamic link portion of encoding a time line sequence.
I can send it over to Media Encoder, but it crashes consistently after the yellow bar saying something about dynamic link.
I have CS6 installed in my computer here at work, it previously had CS5.5 installed on it.
I read some answers about CS4 having this problem and tried to create a shortcut and put it in the dynamic link folder, but that didnt work.
I would hate to have to reinstall the software here at work as the IT department is a pain- but I can't encode video on one of the computers we use here.
Any ideas on what may be happening and how I can solve the problem?
Thanks!
Its a Dell Workstation with Windows 7 Ultimate installed dualE5620 processors at 2.4GHz. .
only 6 GB RAM, and a RAID 5 hard drive setup with 3- one gb drives giving the C drive space of 1.8Gigs
Its got an NVIDIA Quadro NVS 420 video card.
I'm upgrading this computer to better work with editing video, so this is a good time to get this all cleaned up.
Im adding RAM (24GBs)- replacing the video card to a GTX 780 3GB running 3 monitors.
I'd also like to either split up the RAID (ugh)..or just add 2 internal SAS HDDs. to split up the video and the cache and the OS/programs as is usually done with editing video.
Thanks for your help in advance...
Mike...more information...problem still not solved....
After searching more in the forums, I tried a couple more things:
I tried to restart AME and clearing the preferences. This didnt help.
I also deleted the ...appData/Roaming/Adobe/AdobeMediaEncoder/6.0 folder and all subfolders No help here either.
I also tried to import the sequence via AME rather than export via PP. This worked. The sequence loaded immediately and processed perfectly.
When I export via PP, I hit the queue button, it hangs for about 3 mins, then the yellow bar appears saying "Connecting to Dynamic Link server"
it then hangs for approx 3 mins again and then I get the Failed alert.
the error log reports:
Encoding failed
Could not read from source. Please check if it has moved or been deleted.
any help available here???? -
Imac will not read cd or dvd in optical drive
When loading a DVD I get the following message "A valid device could not be found for playback [-70017]
I have tried to read a DVd perviously viewed on this machine and it is not showing on the finder window.
If I open Disc Utilities I can see the disc correctly displayed.
Any suggestionsI had the same problem on my iMac. I followed the instructions at http://discussions.apple.com/thread.jspa?threadID=2020977, (Klaus1)
i.e. I used the disk utility to restore file permissions and - after a restart - it solved the problem. -
Dvd drive does not read dvd but reads cd only.
my hp compaq 420 core2 duo dvd drive does not read the dvds but only reads the cds. How can i solve this problem, please help me with the correct answer.
This question was solved.
View Solution.It will likely require replacement of the drive. There is more than one laser in there: one for each function. One can go bad without the other going bad.
608141-001
Above is the part number for the DVD burner drive. I could not find one on eBay. Here is one online:
http://www.mydvddrives.com/replacement-for-hp-compaq-608141-001-sata-cd-dvdrw-dvd-ram-drive-burner-l...
Replacement is easy. Remove a single screw on the bottom and slide the old drive out and replace with the new drive. -
DVD drive will not read DVD-Roms
I recently tried to reinstall a game that I had played previously, only to find that my drive will not read it. I can hear the disk spinning, but my computer will not recognize that there is a disk in the drive. I tried some of my other games and I noticed that all of the older games, that ran on CD-Rom, had no trouble installing, while the ones that ran on DVD-Rom never showed up in the drive.
This is strange because I have installed all of these DVD-Rom games on my laptop before with no problem. I've tried doing simple fixes, like updating everything and uninstalling then reinstalling the drivers, but nothing helps.Hi,
If it worked before then try few System Restore points and check. Could have happened due to some update.
Also provide the Product number of your notebook if restore doesnt help.
Note:
If you have HP Support Assistant installed on the computer(The Blue Question Mark) then open it ==> Complete all pending Updates & Tuneups==> Restart and Check. It may solve your problem
Although I am an HP employee, I am speaking for myself and not for HP.
**Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed. -
HP dv6 DVD drive not reading DVD's
Hi, my HP dv6 is currently running windows 7 and for some reason it will not read DVD's. It will read CD's just fine no matter what's on them. I've tried to uninstall and reinstall the driver and find other sollutions and so far nothing has worked. Please help.
This question was solved.
View Solution.Please give us the full model number....dv6-xxxx? An optical drive has more than one laser and sometimes the CD laser is fine but the DVD laser is bad and the only way to fix that is to replace the drive. Are you still under warranty? The only other thing you can try is a dvd laser cleaner disk like this:
http://www.radioshack.com/product/index.jsp?productId=2361964&utm_source=Google&utm_medium=PPC&utm_t...
This would be a long shot but might work. -
Hi,
I've already archived a lot of assets in my final cut server but since one week there is a message appearing when I click on an asset and choose "Archive". The pop-up says: "ERROR: Could not read block 64439 of relation 1663/16385/16658: Result too large"
Does anyone know what's the problem and/or have any suggestions to solve my problem?! I can't archive anymore since the first appearance of this message.
What happened before?
-> I archived some assets via FCS and then transfered the original media to an offline storage media. That system worked fine for the last months and my normal server stays quit small in storage use. But now, after I added some more new productions and let FCS generate the assets, it doesn't work anymore...
It's not about the file size - I tried even the smallest file I found in some productions.
It's not a particular production - I tried some different productions.
It's not about the storage - there's a lot of storage left on my server.
So, if someone knows how get this server back on the road - let me know.
THNX!
ChrisI would really appreciate some advice re: recent FCS search errors.
We're having similar issues to C.P.CGN's 2 year old post, it's only developed for us in the last few weeks.
Our FCS machine is running 10.6.8 mac os and 1.5.2 final cut server with the latest
OS 10.6.x updates.
FCS is still usable for 6 of 8 offliners, but on some machines, searching assets presents "ERROR: could not read block 74012 of relation1663/16385/16576: Input/output error."
Assuming the OS and/or data drives on the FCS machine were failing, I cloned the database drive today and will clone the OS drive tomorrow night, but after searching the forums and seeing similar error messages I'm not so sure.
FCS has been running fine for last 4 years, minus the recent Java security issues.
Thanks in advance, any ideas appreciated!
cheers,
Aaron Mooney,
Post Production Supervisor.
Electric Playground Daily, Reviews On The Run Daily, Greedy Docs.
epn.tv
Maybe you are looking for
-
Unmatch a PO from a cancelled Invoice
Hello Gurus, we have a PO whose line is fully matched with an Invoice in AP. but now the invoice is cancelled by the user. Now the user needs to book the PO line for another new invoice. but the po line is not showing available for matching as the to
-
I already asked and didn't get a very good response. I'm getting frustrated. I paid for CS6 I had it downloaded on my cintiq companion, and then I had to return my cintiq because it was faulty. I have my new one now and need to download CS6 again so
-
Report on Foreign currency valuation
Sub:How i can get report from FGCL_FC_VAL Dear gurus, Configuration of foreign currency valuation is done.Only thing is that how i can run said report.I mean what data i should put in said report,so that when i run FGCL_FC_VAL,the system will do auto
-
Cost sheet report for overhead calculation
Dear All, I was going from below thread but not able to create the report for overhead head calculation (Cost sheet - KGi2) is there any std. report available for that. i have to show the Base , percentage and amount of base and percentage calculated
-
Oracle Xellerate - Account and Password Expiry
Hi All, I needed a quick help on how would Oracle Xellerate Identity Provisioning enforce account and password expiration policies. Please suggest me some good supporting links. Thanks and Regards Aditi