Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Arch Linux, A Summer Project: My experience, a worklog
New Posts  All Forums:Forum Nav:

Arch Linux, A Summer Project: My experience, a worklog - Page 3

post #21 of 96
Next time you get a black screen Alt+F#2-6 to get back to a new console and then kill the X session Alt+F1 to get back to where you originally started ( Alt+F7 is where you can get back to the X session if you don't kill it ). Alt+F1 will also give you some info on what's going wrong if something is going wrong, and you can later grab the logs and paste them here if you need help.
post #22 of 96
Quote:
Originally Posted by benpack101 View Post

Today was a frustrating day and I really didn't get much completed.

I began by trying to mount the storage partition I have on the same HDD to be able to access my files. At first I had it mounted within "/home/username/" which was a nice little touch. Now it is in "/media/".

The problem I am having is that I can not access it in as another user other than root. I have multiple times tried to go into the /etc/fstab to change the properties of the partition but that did not work either. I tried adding the "user" and "users" options to allow read and write access to all users (and user groups). As the partition type is ntfs I am thinking I may need to read a little about NTFS-3G.
Can you post your fstab and the output of ls -l /media/
Quote:
Originally Posted by benpack101 View Post

From here I went and tried to play with some Window Managers. To boot up anything other than the default xorg environment that I had been able to pull up last time, one must create a
Code:
~/.xinitrc
for each user. There the following line of code must either be uncommented or added in:
Code:
exec [I]blackbox[/I]
or whatever WM/DE desired. I was able to get a few WM up and running however when I tried cinnamon, installed and changed the "~/.xinitrc" I got a black screen. I ended up having to restart the machine to get out of it.
You don't need to put that into every .xinitrc. if no file of that name exists on the users home, then Xorg will default to the global file: /etc/X11/xinit/xinitrc
However you might be better off installing a logon manager (eg GDM if you're running GNOME, KDM if you're running KDE or lightdm which is a more general purpose one). What happen with them is that Linux will switch to a graphical logon manager instead of the standard console one. Most logon managers have a dropdown menu that allow you to select which WM/DE to load. So once you have your logon manager installed you shouldn't need to fiddle with xinitrc files.
Quote:
Originally Posted by benpack101 View Post

Another issue I was having, and saw once yesterday was this issue that only happens occasionally while I am using pacman, I'll get an "error" of sorts while trying to install something. In short I am told that there is an error getting libjpeg-turbo-1.3.0-1-x86_64.pkg.tar.xz
Code:
The requested url returned 404 not found
. Pinging google shows that I still have a good internet connection. Whenever I do get this error, it is only with this same package. It will cycle through all the different mirrors, returning the same error. After downloading the rest of the required packages it will not install stating an error (I'll need to get better documentation on this next time it happens). After restarting and going to grab something to drink or eat, all is well and I continue on my way.
That might just be that the package is out of date on the server. Are you running the -Sy option with pacman (eg pacman -Suy for system updates) to sync up the local database with the server repositories?
Quote:
Originally Posted by benpack101 View Post

Another thing I want to get figured out is my GRUB menu. I don't quite remember how I did it last time, but I would like the GRUB menu to recognize the Windows 7 partition on the SSD. I imagine this is just something I have to set in the grub.cfg file.
That's actually very easy. You just need to add some chainloading options. In fact I think Arch comes with Windows options in GRUBs config files so you just need to comment them out then install GRUB (that last part I can never remember how to do though)
post #23 of 96
Good luck on your endeavors thumb.gif

Takumi
post #24 of 96
Thread Starter 
Quote:
Originally Posted by Shrak View Post

Next time you get a black screen Alt+F#2-6 to get back to a new console and then kill the X session Alt+F1 to get back to where you originally started ( Alt+F7 is where you can get back to the X session if you don't kill it ). Alt+F1 will also give you some info on what's going wrong if something is going wrong, and you can later grab the logs and paste them here if you need help.

Thanks, that is good to know, if I run into more problems I will definitely post some logs here.
Quote:
Originally Posted by Plan9 View Post

Can you post your fstab and the output of ls -l /media/
You don't need to put that into every .xinitrc. if no file of that name exists on the users home, then Xorg will default to the global file: /etc/X11/xinit/xinitrc
However you might be better off installing a logon manager (eg GDM if you're running GNOME, KDM if you're running KDE or lightdm which is a more general purpose one). What happen with them is that Linux will switch to a graphical logon manager instead of the standard console one. Most logon managers have a dropdown menu that allow you to select which WM/DE to load. So once you have your logon manager installed you shouldn't need to fiddle with xinitrc files.
That might just be that the package is out of date on the server. Are you running the -Sy option with pacman (eg pacman -Suy for system updates) to sync up the local database with the server repositories?
That's actually very easy. You just need to add some chainloading options. In fact I think Arch comes with Windows options in GRUBs config files so you just need to comment them out then install GRUB (that last part I can never remember how to do though)

I have been quite busy this week with summer school and a test, but I am hoping to get some work in this weekend. I shall take a fresh look at it again soon and then post fstab if I still need guidance.

While running a logon manager isn't a bad idea, is there an easy alternative then running a xorg from the start?

I'll have to check and make sure the system and all her packages are up to date.

I just did some quick reading on GRUB and that doesn't look too difficult to configure.

Quote:
Originally Posted by T Yamamoto View Post

Good luck on your endeavors thumb.gif

Takumi

Thanks dude!
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
post #25 of 96
Thread Starter 
GRUB (Day 3 First Install)

Breakthrough on the GRUB front!
Having installed os-prober, I could run
Code:
grub-mkconfig -o /boot/grub/grub.conf
and after the posting about the Arch install, "Found Windows 7 (loader) on /dev/sda1"

From there I opened /etc/grub.d/40_custom, which is the menu list run after the two that by arch had going by default. Initially it is empty but the GRUB (arch)wiki page explained that this is where I put details for the next menulist I had, Windows 7.

At first I tried following the "Microsoft Windows installed in BIOS-MBR mode" but now that I think about that, of course it was not going to work as I believe I do not think I have GRUB installed in the MBR.

So after that did not work, I scrolled down a little further and found instructions that mentioned "chainloader" like Plan9 had mentioned. The menuentry needed to be added like so
Code:
menuentry "Windows XP" {
  set root="(hd0,3)"
  chainloader +1
}
Now since I have Windows 7 on the separate SSD I needed to add an additional line "drivemap" that "tricks Windows into believing that it is the first drive". The first hd is where GRUB is, and the second being where windows is.
Code:
menuentry "Windows XP" {
  set root="(hd0,3)"
 drivemap -s hd0 hd1
  chainloader +1
}

Next stop, logon manager!
Edited by benpack101 - 6/5/13 at 5:58pm
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
post #26 of 96
If you installed os-prober and ran mkconfig then the Windows 7 drive will have been added automatically ( seeing as you said it found it ).
post #27 of 96
Thread Starter 
Quote:
Originally Posted by Shrak View Post

If you installed os-prober and ran mkconfig then the Windows 7 drive will have been added automatically ( seeing as you said it found it ).

On system restart I still only got the GRUB menu to come up with the Arch options, so I found edting grub.cfg as my way to go.
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
post #28 of 96
Thread Starter 
Login Manager and Desktop Environment (Day 3.1 First Install)

This is my first post to OCN running Arch!

I decided to try out SLiM (Simple Login Manager as it seemed lightweight in comparison to the other ones suggested in the Arch Wiki). It was also not directly related/linked to a DE.

Using the wiki page as a guide, I installed SLiM. Since I am not completely set on a specific DE/WM I figured I would be messing around with a few of them, so I would set up SLiM accordingly. In my ~/.xinitrc I needed to put a case statement with the different DEs that I would be running. Initially wanting to just play with blackbox and xfce my case statement looks like this:
Code:
case $1 in

blackbox)
         exec blackbox
         ;;
xfce|*)
         exec startxfce4
         ;;
esac

The "|*" after the xfce4 represents the default manager.

To get the login manager running I had to run
Code:
systemctl enable slim.service
Just as it appears, I could run any other login manager just the same.
To boot straight to the terminal instead I would need to run the previous code but with "disable" instead.

Upon restart I was able to boot into xfce!
To switch DEs I click 'f1' at the login screen. For some reason or another it was not working. So I decided to install kde as well.

Now I could only get KDE working and none of the other DEs.

So I looked back at the ".xinitrc" and saw that I had the following un-commented before the case statement (like I was trying to do the other day)
Code:
exec startkde
exec blackbox
exec startxfce4

This was obviously running before the case statement and therefore only the first "exec" statement would run.
Having fixed that arch booted beautifully!

Looking at different themes for SLiM, I am currently trying out the "fingerprint" theme as that looks really cool.


Now I'm downloading a few programs, (ie. Chromium, VLC, libreoffice). Going to try and work out that problem with access to my Storage drive next.
Edited by benpack101 - 6/5/13 at 5:58pm
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
post #29 of 96
Thread Starter 
I was getting this with other DEs (and ignoring it as I was planning on using xfce4 for the time being, but now I'm getting it with all the DEs, when I logout (via GUI) it, every other time or so, hangs showing the background and the little xfce4-panel at the bottom but not returning to SLiM menu.

Any ideas?

EDIT:
It does seem to be hanging every second time, during this current hang I am able to go into other tty#
Edited by benpack101 - 6/2/13 at 3:34pm
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
post #30 of 96
Thread Starter 
Binaries move to /usr/bin requiring update intervention (Day 4 First Install)

Had a few minutes today to try and figure out why xfce was crashing on shutdown. First thing I did was update the system (habbit of mine) and I was getting an error along these lines:
Code:
error: failed to commit transaction (conflicting files)
filesystem: /bin exists in filesystem

I found a sticky thread in the forums describing a problem similar to mine. The thread is 4+ pages long and not as easy to follow as I would have liked. Upon further google search I happened upon the "News" page on the Arch wiki. A news article posted today titled Binaries move to /usr/bin requiring update intervention And it was here I found the answer to my problem.

Other than the "News" page, are there other pages I should be sure to check before updating my system (or doing anything else for that matter)?
Edited by benpack101 - 6/5/13 at 5:56pm
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
Combat 1.1
(16 items)
 
PAIN
(11 items)
 
 
CPUMotherboardGraphicsRAM
Intel Core i7 3930K P9X79 PRO GIGABYTE G1 Gaming GeForce GTX 970 Samsung  
RAMHard DriveHard DriveOptical Drive
Samsung  Crucial M4 64GB SSD Seagate Barracuda 1TB ASUS 24x DVD Burner 
CoolingOSOSMonitor
NH-D14 Windows 7 Ultamite 64 bit Arch Linux ASUS VW246H Glossy Black 24" HDMI Widescreen LC... 
KeyboardPowerCaseMouse
Logitech Combo mk520 Seasonic X Series 650W NXT Phantom 410 Logitech Combo mk520 
CPUMotherboardGraphicsRAM
Intel Core i7 2600K P8Z68-V PRO GEN3 NVIDIA GeForce GTX 560 Ti  Samsung  
RAMHard DriveHard DriveCooling
Samsung  Seagate Barracuda HDD Crucial M4 SSD Corsair H80 
OSPowerCase
Windows 7 Enterprise Seasonic M12II 750w Plexiglass 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Arch Linux, A Summer Project: My experience, a worklog