Slackware :: User_foo In Text Console Has Not Same Environment As User_foo In GUI Terminal?
Jun 15, 2011
Kernel 2.6.21.5, slackware 12.0
Xfce 4.4.1
when I open a graphical terminal in the GUI, I appear as being the same user who ran X in order to enter the GUI, say user_foo, as said by whoami. But a program I usually use in a text console as user_foo, gets Command not found here. Furthermore, the name of the dir I am in does not appear in the prompt, whereas it does when in the text console.
I guess this has something to do with enheriting the environment, but don't know wht to do for this to happen. How do I open this GUI terminal? I do so by choosing among one of several ones in the DE main menu. When I click the menu entry, the terminal doesn't ask for a password.
I use various hard disks in my computer. When I install a 13.1 disk, the six text consoles <Ctrl-F1> through <Ctrl-F6> are shifted to the left such that the first 2 characters in the line are off my flat panel screen. I use several different disks on this machine and all other disks are properly aligned. change the vga line in /etc/lilo.conf to vga = normal rather than vga = 773. This didn't fix the problem and resulted in another problem. If I adjust my flat panel horizontal adjustment, when I start XWindows, those screens are too far to the right. Is there a way to adjust the horizontal offset only for the consoles?
I just installed Slackware 13.1 on my Acer a0531h. My first problem is the size of letters on pure console. It's too small. I tried tweaking lilo but even using 'normal' doesn't change the size of letters. I haven't changed the default font (I think it's called default8x16). The text looks pretty sharp though, so I'm wondering whether this is its native resolution. The text during installation was huge, and quite blurry. I just want to have a text size I can easily read and if possible be sharp. I know I can start X and have whatever font family and size I want, but somehow I feel better using pure console. Just in case it matters, I want to say that eventually I want to have UTF8 support on the command line (so that I can read and write Greek).
I'm interested in changing the console text color. I can change the console color easily in X, but I'd also like to change the color of the text when my computer first boots up (like right after LILO).Is this something I can modify without rebuilding the kernel? If not, does anyone know where in the source I could make a change like this?
Slackware 12.0 (GNU/linux kernel 2.6) I am said slackware is very stable (I suppose this means it has few bugs). However, every time I run startx to start the graphical interface, for a brief moment I can see (just before the screen is put in graphical mode) a lot of error messages. How can this be? I use slack 12 a lot and have reinstalled this distro many times. However the described behavior always repeats.
I installed slackware recently and noticed that when ever i open up a konsole i get some random messages ,i wont get these in other terminals like rxvt or xterm Where are these texts fetched from and can i modify those text messages to put something of my own ?
Just wondering if anyone knew of a really good text based terminal browser to use when I am not running X. I can use Links and do not have too much trouble navigating, but I have not been able to set the screen to view the entire page (I have to move off screen to read the whole page.) So, if anyone knows an easier text browser that is a little easier to set the screen options with code...
Can I use two or more different profiles used in my console as the same time? Since, I always ssh to the other machines ,e.g. servers. in my console. Somehow, I always mix it up with my current PC.
I want to use 2 different profiles for different environments. Say, in server console, I use red background color. in my pc console, I use green background color such that i can easily distinguish out.or can i set the background color in .bashrc?
I have just come over from the darkside (Microsoft) and am finding problems with a few items.
I am trying to configure the monitor/video card as I am having problems with the nvidia geforce 4 integrated video card. Some instructions I have sat to press ctrl alt and f1 to go to the text console. I do but it asks for a login and does not accept my user name and password.
My computer isn't booting up or logging in, period, and I was wondering if I could run any of those Grub fixes if I downloaded it through the console. Can I run anything online besides yum using the console? I have a 4 gig USB Flash drive if necessary.
I have install Fedora 13 on my machine (Intel 815 Chipset with graphic card of nVidia GeForce 256), but the default resolution of text console wound have be about 1024x768. I intend this machine as a simple samba server (without X Window), so just a low-resolution monitor will work with it. However, this monitor can't work with the resolution higher than 800x600, I have to change the resolution lower. I have searched the solutions for this problem on Google. Most of them thought I should fix /boot/grub/grub.conf, append "vga=769", "vga=771" or even "vga=ask" to the end of the line start with the word "kernel". I have tried but all of them doesn't work. Just like Fedora 13 use the value from the other configure file overwrite the one list in grub.conf. As everyone knows, if I installed and launched X Window on my machine, I could query and change the resolution with command "xrandr". Are there some similar ones that can work on text console?
I'm running Ubuntu 11.04 on an IBM Thinkpad T60, when I try to Logoff, Restart, or Shutdown the system just goes to a black screen and I'm forced to do a hard reset to restart the system. I did a reinstall and things seemed to be working fine until I applied updates and reloaded my package list from my previous install then I got the same conditions as before. I suspect that this my be a result of a bad package or update. What I want to know is if their is a way to display console text of the shutdown process so I can see where the system hangs and possibly remove the problem application. I have an AMD 64 bit desktop running with the same package lists and have no issues I suspect it is a hardware specific issue for the laptop or an error with a 32 bit install.
GNU/Linux kernel 2.6, Slackware 12.0 KDE 3.5.7, Kmail 1.9.7
To any user of an email program running on KDE: Let's call Kmail to such a program. When I am in the GUI, Kmail notifies me of any email that is entering. It does so by playing a .wav file through the loudspeakers (and displaying a little window in the desktop). But what happens if I am in a text console? Let's says I pressed Ctrl+Alt+F3. So now I am in virtual console #3. Shall I hear the sound? This question mortifies me.
I installed CentOS 5.6 (kernel: 2.6.18-238.12.1.el5) with X Window on my HP Compaq 6710b. I also downloaded the firmware iwl3945 for my Intel Pro Wireless 3945 and manually installed it, reloaded the iwl3945 module and enabled NetworkManager. I could then get the wireless network connection worked on my graphical environment. I installed additional software manually by using the terminal window (Applications --> Accessories --> Terminal) and everything worked perfectly.
However, when I switched to text-based environment by issuing the commend "sudo init 3" (changing the user level) and logging in as root, I could not get any internet connection. I tried to use lynx and I got the error message: "Unable to connect to remote host". I am a complete newbie in Linux and I tried to google and search for solution within centos.org but I could not find.
I installed OpenSUSE 11.3 in text only mode and on 1st console (tty1) I see background (wallpaper) and logo at upper left corner: I know that I can to disable this splash permanently (menu.lst) or temporarily ('echo 0 > /proc/splash'). How I can:
1. Change the background (/etc/bootsplash/themes - is this here?).
Is there a way to color particular words printed on console based on user preference? For example I need to color text 'error' when a particular program is compiled.
I'm trying to track down a screen resolution issue (Karmic on an Acer SK20 [Intel 945 graphics] with Acer AL1511 flat panel via VGA) and mechanism for setting the framebuffer screen resolution after GRUB2 has loaded the kernel but before X starts.
Before I forced it to behave itself by adding an xorg.conf with a lone "Modes" entry for 1024x768, X was setting the panel to 640x350 by default. It appears from looking at get-edid | parse-edid that this is because 640x350 is the only resolution this idiot panel's EDID says it knows about, even though its native resolution is in fact 1024x768.
So the GUI works fine now, but all the text consoles (Ctrl-Alt-F1 through F6) are still operating at 640x350 and look terrible; also, because usplash doesn't know what to do with 640x350, I don't get my nice white Ubuntu logo before GDM starts.
In previous releases, I would have dealt with something like this by adding vga=791 to the kernel boot options. That doesn't work for the Karmic kernel, and GRUB2 whines about it being deprecated and tells me to use "set gfxpayload=1024x768x16,1024x768" on a line before the "linux" command instead.
Things I have already tried, with no success:
1. Adding "set gfxpayload=1024x768x16,1024x768" into the boot sequence, right before the "linux" line, by using GRUB2's inbuilt boot sequence editor (Ctrl-E): no change.
2. Changing the GRUB_GFXMODE= line in /etc/default/grub and running update-grub: changes the resolution used for GRUB's own menu, but as soon as the kernel boots it's back to 640x350 on text consoles.
3. Same as (2) but also adding a "set gfxpayload=keep" line in /etc/grub.d/00_header, right after the "set gfxmode=${GRUB_GFXMODE}" line: same effect as (2).
4. Removing the "splash" option from the "linux" line. No change (I guess this is because usplash didn't work anyway at 640x350). By the way, usplash.conf is set up for 1024x768 and yes, I did remember to dpkg-reconfigure -phigh usplash to rebuild the initramfs after checking this.
where exactly does Karmic set the screen resolution for its text consoles, and how can I force it to ignore this LCD panel's bogus EDID?
using Ubuntu 10.10 amd64, my older NVidia card suffered a hardware failure last week, and so I replaced it with an NVidia GTS 450.
As the driver that was previously in use was nvidia-173, at the next boot with the new card the X server didn't start. I got to the text console, where the /var/log/Xorg.0.log had the message that the GPU/chipset is unknown to the driver. (well, ok )
Some web searches revealed that the chipset GF106 of the GTS 450 is only supported by the NVidia 260.19.12 driver, which is not in the Ubuntu stock repositories, so I followed the instructions at http://halvar.at/blog/?p=258 to install the latest driver from the PPA repository:
In short, although all of the above worked fine, the problem is that even after a reboot, the system still uses the nvidia-173 driver (according to Xorg.0.log, and starting X still fails).
Before I tried the above, I also tried
sudo aptitude install nvidia-current
alone, in order to get the latest driver that is in the stock repositories, but the result is the same in both cases.
What do I have to do in order to activate the nvidia-current driver (either stock or from the ppa above) instead of nvidia-173??
I tried to modify the proper blacklist file in /etc/modprobe.d/... (sorry if the file names are slightly wrong - I'm typing all this from the top of my head, as the affected Ubuntu system has no graphics, and thus no graphical browser etc. ), but then there is the error:
"Error: API mismatch: the NVidia kernel module has version 260.19.12, but this NVidia driver component has version 173.14.28 ..."
When I try to load Ubuntu (recovery mode) or if I press Ctrl+Alt+F1, the image gets corrupted showing a white screen with black writing on it, but which is unreadable. Also the words seem to be spelled backwards. I'm trying to install an NVIDIA driver and I need to stop first the X server.
I run a custom build of linux running kernel 2.6.24 and busybox. At the moment I'm investigating a kernel panic. The problem is that after 10 minutes the screen is blanked, i.e. it is still on but has been turned black. If you press a key then the command prompt is shown once again, but if the kernel has crashed then this won't work and any info about the panic is inaccessible. So I'd like to prevent the display being blanked. I've tried booting with 'apm=off' and 'apm=off acpi=on' kernel parameters but neither had any effect.
I have a program which logs the results of a test in a text file. I want to display this file on the console and display the updated file each and when as each test is updated. Is there any console command which will refresh the display everytime the file is updated?i tried using the "tail" command but it works(refreshes) only if the last field is updated.
I've added an export command to /etc/profile, but the environment variables don't show up when not using a terminal.
For example: when I add:
Code:
To my /etc/profile (then open a new terminal so it registers) and run a graphical program from that terminal, the graphical program can see see the environment variable A.
However if I add the export command to my /etc/profile, then reboot so everything registers, then run that same graphical program from a menu (such as Applications->Accessories->Myprogram), it can't see the environment variable.
What I'm trying to say is basically, my environment variables only show up if I run a program in a shell. Is there a way to set environment variables that will show even without a shell?
A thread on text size in console got sidetracked to discussing fbterm. In an effort to not (further) hijack that thread, I've started this one.[URL].. Anyway, I was asked how I got ibus-fbterm working. I only really got it working in ArchLinux, not Fedora, but I suspect if someone works enough at it, they can get it working in Fedora as well. I do a minimal installation, installing X and fluxbox or openbox. One also needs to have framebuffer working--if you have nomodeset in grub, due to, for example, using an NVidia driver, this won't work. You will have a /dev/fb0. In Arch, this is owned by root:video. When installing fbterm, there's a message that one should add themselves to the video group in order take advantage of this.
I used it with ibus-anthy. First, I made sure that that worked properly in X. I then installed fbterm and ibus-fbterm. So, to get it working, first be sure that ibus and your desired input method is working in X. Then, you have to have rights to /dev/fb0--in Arch, this was easy, making myself a member of the video group, not sure about the best way to do it in Fedora. As a temporary experiment, I just did a chmod 777 on it, which is obviously not the best solution.
Now in console, start ibus ibus-daemon --xim Before running fbterm, run the command setcap 'cap_sys_tty_config+ep' /path/to/fbterm
as root or with root privilege. In Arch, the setcap command was there, in Fedora, I had to install it. I'm afraid I forget what program provided it, I had to use yum provides */setcap Then call ibus-fbterm with ibus-fbterm-launch You'll see that your console looks slightly different. Now, if it works, you should be able to hit ctl+space and then input the language of your choice (in my case Japanese.) In Fedora, it didn't work. I would hit shift space and enter characters, but nothing happened.
In Arch, it was a bit better--I'd hit ctl+space and enter something. Then, when I hit enter, I would see the results of what I'd typed. I couldn't edit it until I'd left input mode by hitting ctl+space again. That is, after hitting enter, I'd see the result of what I typed, but couldn't backspace.or otherwise go back. What it would do is, when I was trying to select kanji, by hitting the space bar after t yping the phonetic, is, after the second or third hit of the space bar, it would show the kanji choices and I could pick one.
fixing a text corruption issue / advice for filing a bug report (if necessary). So, generally speaking the stability I am experiencing with Natty is as I expect; I'm fully aware that this is a very very early development release and so all sorts of things can go wrong. I just wanted to point that out So while Gnome/Unity are up and running, graphics run more or less perfectly, the boot process text is completely garbled and if after everything is fully loaded I hit Control+Alt+F1-F6 the text looks like:
* this * the above image close-up
The above links are supposed to be of the ubuntu login prompt. The problem occurred after running the upgrade command:
Code:
sudo do-release-upgrade -d
As is standard upgrade procedure. Is there anything obvious going on that I can tweak to make it all happy again? Since I have a working GUI.
When I'm logged in, physically on the server as root and logout the lines doesn't get cleared like when you logout as a normal user. This could be a bug and if it is, it could be a security problem. The last actions done shows.
Additional information:
Ubuntu Server 10.10 (32 bit) RAM: 1GB Server used as: webserver, database, gaming server.