Page 7 of 7 FirstFirst ... 567
Results 61 to 65 of 65

Thread: Commonly Used Sudo Code for (*)Ubuntu/Unity Crash Recovery

  1. #61
    Join Date
    Dec 2009
    Location
    State of Jefferson
    Beans
    331

    Re: Commonly Used Sudo Code for (*)Ubuntu/Unity Crash Recovery

    For ATI users:
    fglrx uses xorg.conf, but syntax has changed in the past year (a 10.10 xorg.conf will get you a black screen).
    So after upgrading, run:
    Code:
     sudo rm /etc/X11/xorg.conf
    sudo aticonfig --initial

  2. #62
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    5,423
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Code for (*)Ubuntu/Unity Crash Recovery

    I tried and tried and tried and tried on my AMD 64bit Acer Extensa with ATI Radeon Express 1250 and it keeps saying <not supported> but works great with 32bit.

    Thanks for the code. I'll insert it in there on the next refresh

    Going slow here for Christmas.

  3. #63
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    5,423
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Code for (*)Ubuntu/Unity Crash Recovery

    Yep .. #18 is a good one.

    18.Just tried installing Precise for the first time today, using Alpha 1. I have an nvidia gs7600 card.
    Installation went fine but on reboot the system repeatedly hung without booting to the Desktop. The 'nomodeset' option did not help.
    Updating the packages from the recovery mode terminal didn't work either, nor did trying to start lightdm after a terminal log in.
    What finally allowed booting to the Desktop was removing all nvidia packages and then reinstalling nvidia-current (which also installed nvidia-settings). Code:
    sudo apt-get purge nvidia* sudo apt-get install nvidia-current
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running Trusty /devel/@ 5.120GHz32bit/ Please put [ prefix] on New Threads!

  4. #64
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    5,423
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Code for (*)Ubuntu/Unity Crash Recovery

    Bump!
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running Trusty /devel/@ 5.120GHz32bit/ Please put [ prefix] on New Threads!

  5. #65
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    5,423
    Distro
    Ubuntu Development Release

    Re: Commonly Used Sudo Code for (*)Ubuntu/Unity Crash Recovery

    14.Attempts to fix a broken OO Install for NVidia 173 users # Effenberg0x0@Launchpad.net
    Code:
         #!/bin/bash ##################################################  # fix_oneiric.sh  # Attempts to fix a broken OO Install for NVidia 173 users  # Effenberg0x0@Launchpad.net  #  ##################################################  #  # Save this file to a known location, such as your Home Folder # Execute  it with sudo chmod +x fix-oneiric.sh && sudo bash  ./fix-oneiric.sh  #  ##################################################  # Assume the env vars we need may be wrong and get them  # from safer sources  ROOT_PARTITION=$(mount | grep -i "on / type" | awk '{ print $1}')  ROOT_FS=$(mount | grep -i "on / type" | awk '{ print $5}')  ROOT_WRITE=$(mount | grep -i "on / type" | awk '{ print $6 }')  FIX_USER=$(cat /etc/passwd | grep 1000 | awk 'BEGIN { FS=":" }; {print $1}') ##################################################  # Checks for a rw filesystem and remounts if needed  if [ $ROOT_WRITE == "(ro)" ]; then        mount -f -o remount,rw -t $ROOT_FS $ROOT_PARTITION /  fi  ##################################################  # Make sure GUI sessions are stopped  service stop lightdm  service kill -s KILL $(pidof lightdm)  service stop gdm  service kill -s KILL $(pidof gdm)  killall -s KILL /usr/bin/X   ##################################################  # Fixes user home permissions and ownership  chown $FIX_USER:$FIX_USER /home/$FIX_USER -R && sudo chmod 750 /home/$FIX_USER -R   ##################################################  # Fixes Xauthority bug  mv /home/$FIX_USER/.Xauthority /home/$FIX_USER/.Xauthority.backup   ##################################################  # Removes all nvidia remains  cd /home/$FIX_USER mkdir nvidia_driver cd nvidia_driver apt-get remove  --purge gdm nvidia-173 nvidia-96 nvidia-cg-toolkit  nvidia-current-updates nvidia-173-dev nvidia-96-dev nvidia-common  nvidia-current-updates-dev nvidia-173-updates nvidia-96-updates  nvidia-current nvidia-settings nvidia-173-updates-dev  nvidia-96-updates-dev nvidia-current-dev nvidia-settings-updates   ##################################################  # Downloads nvidia 173 driver   wget http://us.download.nvidia.com/XFree8...14.31-pkg1.run   ##################################################  # Exports needed and correct environment variables export DISPLAY=:0.0 export XDG_CURRENT_DESKTOP=Unity export  XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/  export COMPIZ_CONFIG_PROFILE=ubuntu export GDMSESSION=ubuntu export  DESKTOP_SESSION=ubuntu export  PATH=/home/$USER:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games  export XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 export  XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 export  DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path  ##################################################  # Run nvidia installer  chmod +x NV*  ./NV*  ##################################################  # Reinstalls all critical DM/DE packages apt-get install --reinstall --fix-broken --allow-unauthenticated lightdm  lightdm-gtk-greeter unity unity-2d unity-2d-launcher unity-2d-panel  unity unity-2d-places unity-greeter unity-lens-music unity-services  unity-2d unity-2d-spread unity-lens-applications  unity-place-applications unity-2d-launcher unity-asset-pool  unity-lens-files unity-place-files unity-2d-panel unity-common  unity-lens-gwibber unity-scope-musicstores compiz compiz-dev compiz-kde  compiz-plugins-main-default compizconfig-backend-gconf  compiz-fusion-bcop compiz-plugins compiz-plugins-main-dev  compizconfig-backend-kconfig compiz-fusion-plugins-extra  compiz-plugins-default compizconfig-settings-manager  compiz-fusion-plugins-main compiz-plugins-extra compiz-core compiz-gnome  compiz-plugins-main ##################################################  # Makes sure lightdm was not started  service lightdm stop  ##################################################  # Fixes lightm config bug (if needed)  if [ ! -f /etc/lightdm/lightdm.conf ]; then sudo touch  /etc/lightdm/lightdm.conf echo -e  "[SeatDefaults]\r\nuser-session=ubuntu\r\ngreeter-session=unity-greeter"  | tee /etc/lightdm/lightdm.conf   ##################################################  # Fixes default-display-manager bug (if needed)  if [ ! -f /etc/X11/default-display-manager ]; then touch  /etc/X11/default-display-manager echo -e "/usr/sbin/lightdm" | tee  /etc/X11/default-display-manager    ##################################################  # Makes sure compiz/compiz-config settings are resetted gconftool-2 --recursive-unset /apps/compiz-1 gconftool-2 --recursive-unset /apps/compizconfig-1   ##################################################  # Backup of compiz/configconfig settings  mv $FIX_USER/.config/compiz-1/compizconfig  $FIX_USER/.config/compiz-1/compizconfig.old mv  $FIX_USER/.config/compiz-1 $FIX_USER/.config/compiz.old mv  $FIX_USER/.compiz-1 $FIX_USER/.compiz-1.old mv  $FIX_USER/.cache/compizconfig-1 $FIX_USER/.cache/compizconfig-1.old   ##################################################  # Update/upgrade the system and reboot  apt-get update && apt-get upgrade reboot now
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running Trusty /devel/@ 5.120GHz32bit/ Please put [ prefix] on New Threads!

Page 7 of 7 FirstFirst ... 567

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •