LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-23-2009, 05:41 PM   #1
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Rep: Reputation: 32
Installed 12.2 - terminal messed up & adding new user probs


Hiya,
I've just installed 12.2 inside a VM in virtualbox (host is ubuntu).
Firstly my terminal looks a bit messed up. I cant see text i'm typing until I press enter, then it shows itself. I can supply a screenshot if it helps. The actual letters that are can see are screwed up as well. Any attempt to change my resolution using the xfce GUI dumps me out to a command prompt.

Secondly, I've added a user so i dont go in as root all of the time. I chose the defaults when i ran the "adduser" command. It seemed to work until i logged in as this user. If i try and open firefox it says "cannot open browser - IO error". Also it appears I can't reboot or shutdown as this user, only log out.

I'm a complete slackware noob, but this distro really appeals to me. Any help would be appreciated. Thanks in advance,
mute
 
Old 05-24-2009, 09:51 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Hi

Welcome to Slackware.

Slackware is notoriously stable, so I would guess that these problems are caused by your VM. If you have a spare partition you would be much better to do a proper install.

Have you set up your virtual network card, and started the virtual network server?

samac
 
Old 05-25-2009, 05:12 AM   #3
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
Cheers for the reply mate.
Yeah i did wonder if it was all a consequence of installing it within the VM. I should be getting a machine from my brother in a few weeks which i intend to install it on properly.

I think i set up the network stuff fine (i can browse the internet when root and stuff like that. Is that what you mean?).

Anyway, installing in the VM has ironed out some problems in preparation for my real install when i get the other machine. I'm off on holiday for a week now. Thanks for your help.

It will be interesting to see if i get any problems with "adduser" with the real install. I'll no doubt keep you posted.
Thanks again for your help,

mute
 
Old 05-25-2009, 07:59 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

How did you setup your local install? It does sound like a VM configuration problem on your host.
 
Old 05-25-2009, 09:24 PM   #5
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
For the Terminal issue, that's a known problem with Xfce's Terminal when using the vesa driver for xorg (and vesa is the default on a Slackware system). You can install virtualbox guest additions, and afterward, use "X -configure" to generate a new xorg.conf (which should select the vbox-specific xorg driver, though I don't recall its name), and all should be well. Alternatively, be sure to use "X -configure" to generate an xorg.conf after you install on real hardware, and you should be okay.

I'm not sure about the Firefox issue - that could be lots of things.

The reboot/shutdown/logout issue is exactly as expected. Welcome to "normal users have only the permissions that root decides they get" instead of "the first normal user that is set up is assumed to be $deity"
 
Old 06-01-2009, 04:31 AM   #6
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
Thanks rworkman,
Got back from my hols late last night, and now i'm at my desk at work I shall try the x-configure stuff tonight when i'm home.
Thanks again,
mute
 
Old 06-03-2009, 07:07 PM   #7
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Thanks Robby for shedding light on an old problem
I had some problems with terminal & Xfce in virtual machines (both VirtualBox and Qemu).

In Qemu I managed to solve it using the "-vga cirrus" option from the CLI when starting Qemu and using the cirrus driver in xorg.conf in the VM.
 
Old 06-04-2009, 12:14 AM   #8
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Your user will be able to reboot and shutdown if you boot to runlevel 4 instead of 3, assuming your logon manager allows it (kdm does out of box). To change the default runlevel to 4 simply edit /etc/inittab. I suggest using nano, vi, or another command line editor as root to do this.

For firefox, try running it in safe mode (eg. firefox -safe-mode). Also try creating a new profile to test (firefox -ProfileManager). If the issue is not profile specific (which it probably isn't), then the issue would be with your system configuration (either your firefox install, permissions, network setup etc). Do other browsers (particularly seamonkey) work fine? If firefox is the only problem, then try reinstalling it.

Also, what groups is your user a part of? The groups command will tell you.

For Slackware, I recommend always reading the CHANGES_AND_HINTS.TXT for each version you use. Robby (rworkman), who gave you such an informative post above, has been writing that doc lately, and the information in there lists some possible "gotchas". You can find it on the installation cd along with some other useful docs. Since you are new to Slackware, I also recommend checking out the slackbook. Onebuck, who posted above has some helpful links in his signature (Slackware Links).

SlackBuilds.org (SBo) is a wonderful buildscript repository, which will help you make custom packages for your system. sbopkg is a tool that can help with using SBo. slackpkg (included in Slackware), and src2pkg are also useful tools. Learn how to use pkgtools (installpkg, etc) before using any of the above tools!

have fun!
 
Old 06-06-2009, 10:57 AM   #9
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
Again, thanks all for the replies. I've found them really useful.
I actually solved the firefox problem by updating using "upgradepkg". Firefox opened with no problem then when i was non-root. Lots of useful things in the slackbook

One thing though. I had to browse to:
Code:
http://www.mirrorservice.org/sites/ftp.slackware.com/pub/slackware/slackware-12.2/patches/packages/
, get "mozilla-firefox-3.0.10-i686-1.tgz" and install it using the above command. Now there's a load of files in that folder. Does this mean i have to download and install ALL of these updates/patches individually?

I'll keep reading the slackbook in the meantime to see if the answers lie in there.
Once again, thanks for the help. I'm really liking slackware I've learnt more about linux in the last two weeks with slack than I have in the last few years using other distro's.

mute
 
Old 06-06-2009, 08:24 PM   #10
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by mutexe View Post
[...]
Now there's a load of files in that folder. Does this mean i have to download and install ALL of these updates/patches individually?
Those are your security updates, so if you have that software installed (you will by default), then you should download them all and upgradepkg them all.

slackpkg can help you do this. The man page should tell you the majority of what you need to know for usage. Once set up you simply
Code:
slackpkg update
slackpkg upgrade-all
Instead of upgrade-all you could just do something like
Code:
slackpkg upgrade package1 package2 ...
if you know the packages that you need to upgrade.

Another route you could take is to use Eric's rsync_slackware_patches.sh script. That script simply lets your user download the patches in an easy fasion. root can then use them.
 
Old 06-07-2009, 04:53 PM   #11
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
Cheers again shadowsnipes,
It's interesting that the "slackpkg" command isn't mentioned once in the copy of slackbook i have.

After uncommneting out one of the lines from my mirrors file (a UK ftp one i think), I ran:
Code:
slackpkg update
slackpkg upgrade-all
It seemed to download lots (expected i guess ), then asked me:
Code:
Some packages had new configuration files installed.
You have four choices:
etc etc..
I chose "(O) overwrite all old files with new ones", then i got a prompt. I assume it all worked?

So do I have to run these 2 commands every week? Every 2 weeks? Or is there someway I can check for files/packages that have changed? Or have i completely got the wrong of the stick? It's all a bit confusing for me at the moment I'm afraid.
Once again, thanks for your help.

mute
 
Old 06-07-2009, 05:03 PM   #12
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
It's interesting that the "slackpkg" command isn't mentioned once in the copy of slackbook i have.
The slackpkg program is a new one so it's not mentioned in the book.

To see when updates are posted you can subscribe to the mailing lists - look at Slackware mailing lists for details.
 
Old 06-07-2009, 11:17 PM   #13
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
Quote:
Originally Posted by mutexe View Post
Code:
Some packages had new configuration files installed.
You have four choices:
etc etc..
I chose "(O) overwrite all old files with new ones", then i got a prompt. I assume it all worked?
The config files are you system settings. Overwrite the ones you know you did not change, but try to merge the changes for the rest (a diff will show you the changes). Also keep in mind that you may have to restart some services for some of the updates to really take effect. The security notices mentioned in the mailing list and on the Slackware site will tell you if this is necessary. Usually it is obvious, though. If you upgrade ssh for instance, you obviously need to restart sshd.

Keep in mind that when slackpkg overwrites the config files that it leaves .orig files lying around. I usually find and auto delete these. See the upgrade HowTo in my signature for an example of this and more uses of slackpkg.

Quote:
Originally Posted by mutexe View Post
So do I have to run these 2 commands every week? Every 2 weeks? Or is there someway I can check for files/packages that have changed? Or have i completely got the wrong of the stick? It's all a bit confusing for me at the moment I'm afraid.
Once again, thanks for your help.

mute
In addition to the mailing list mentioned above there is an RSS feed for the security updates.
http://dev.slackware.it/rss/slackware-security.xml
When you see an update then you can use slackpkg to get and install it. Alternatively, you could have a cron job run slackpkg everyday, but that would be overkill in my opinion, and you would still need to manually manage the config file changes.

For SBo packages I check the Changelog to see if there are security updates. Its feed is
http://slackbuilds.org/rss/ChangeLog.rss. I typically use sbopkg to update (rebuild) these packages unless I feel one needs more of my attention.
 
Old 06-08-2009, 06:09 AM   #14
mutexe
Member
 
Registered: May 2009
Location: Malvern, UK
Distribution: Slackware 14.1
Posts: 240

Original Poster
Rep: Reputation: 32
Fantastic
Thanks for all your help. I'll get stuck in with absorbing all of the information you've supplied me.

Cheers again,
mute
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems adding a new user from terminal htamayo Linux - Newbie 4 05-26-2008 05:29 PM
kmldonkey server adding messed up TDMBG Linux - Newbie 0 11-27-2007 08:51 AM
The newbie messed up again (Dual boot probs) Banyon Linux - Newbie 3 11-14-2004 02:29 AM
cyrus imap server & SquirrelMail, user adding problem? virU Linux - Software 0 07-14-2004 12:11 PM
fstab got messed up after adding cd burner drrnsk8ter4 Linux - Software 3 04-24-2004 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration