General Linux Chat and Small Questions v. Install Arch
4,946 replies, posted
[QUOTE=supervoltage;38392348]Does it use GRUB or syslinux as a bootloader? If it uses GRUB, you can add "single" in the kernel boot parameters to launch the system into recovery mode. As soon as it boots, issue "passwd" in the terminal and it should ask you for the new root password, without asking you for the old one.
Follow this guide if my explanation wasn't clear enough: [url]http://www.debuntu.org/recover-root-password-single-user-mode-and-grub[/url][/QUOTE]
I think I tried something like that, the boot parameters in the grub menu thing were diferent, and in the recovery mode, I think it was missing a button, or when you pressed something like "b" to open the terminal, nothing happend, but yeah, I'll try that, thanks :)
[QUOTE=TheEyes;38393195]That's not only for grub, it works in ext/syslinux too[/QUOTE]
Apologies, I only had to do this with GRUB, so I didn't know if it'd work in other bootloaders.
[QUOTE=supervoltage;38393397]Apologies, I only had to do this with GRUB, so I didn't know if it'd work in other bootloaders.[/QUOTE]
When I started my laptop, it said "Press f2 for setup, f4 for recovery", I pressed f4, and it changed to "Please wait", but it still booted normaly
[QUOTE=nehkz;38370132]What am I doing wrong?
[img]http://nehkz.me/img/i/3cc6cc6417fc6c708a56f830a378f2df.png[/img]
It's probably just because I'm not on a 32-bit.[/QUOTE]
Nice prompt.
[QUOTE=Wazbat;38393465]When I started my laptop, it said "Press f2 for setup, f4 for recovery", I pressed f4, and it changed to "Please wait", but it still booted normaly[/QUOTE]
Try looking at the distro documentation, maybe? There may be some useful stuff to help. I have no experience with any other distros except Arch.
[QUOTE=Wazbat;38393465]When I started my laptop, it said "Press f2 for setup, f4 for recovery", I pressed f4, and it changed to "Please wait", but it still booted normaly[/QUOTE]
That sounds like a BIOS message, you appear to have just reseted your BIOS.
Does a prompt where you choose your operating system come up? If so, press tab on your OS and add single to the end of the kernel line.
Otherwise, you can just burn a live cd and then chroot into your machine and run passwd.
[QUOTE=neos300;38393806]That sounds like a BIOS message, you appear to have just reseted your BIOS.
Does a prompt where you choose your operating system come up? If so, press tab on your OS and add single to the end of the kernel line.
Otherwise, you can just burn a live cd and then chroot into your machine and run passwd.[/QUOTE]
No messages, it just has that samsung image, and then it starts.
Also, could I do that cd thing with ubuntu on a usb stick? I've tried that, but I get permission error's, even with the usb's ubuntu's admin account
Changed to Linux Mint. I was getting tired of things breaking.
I don't understand how people manage to "break" their Arch installations. I've been using it for almost two years now and haven't had one problem with it.
For starters, pacman -Syu can break your system badly, especially with that glibc update a few months ago
[QUOTE=TheEyes;38395107]For starters, pacman -Syu can break your system badly, especially with that glibc update a few months ago[/QUOTE]
Hint: Wait a day or two with updating, and check out the news first. Especially if it's updates of essential software.
I always check the arch-announce mailing list, and /r/archlinux first before 'pacman -Syu'
[QUOTE=jetboy;38395023]I don't understand how people manage to "break" their Arch installations. I've been using it for almost two years now and haven't had one problem with it.[/QUOTE]
Sorry. I guess I'm not elite enough.
[QUOTE=jetboy;38395023]I don't understand how people manage to "break" their Arch installations. I've been using it for almost two years now and haven't had one problem with it.[/QUOTE]
Deleting /lib for instance because it became a symlink to /usr/lib, but then you notice you broke ln with that.
Even if you do bork an Arch install, just throw in your USB recovery and chroot in to clean up. As long as you can figure out what you messed up this will usually be all you need. In fact if I didn't mess up my install every so often I would never update my recovery USB :v:
[editline]10th November 2012[/editline]
[QUOTE=WeltEnSTurm;38395519]Deleting /lib for instance because it became a symlink to /usr/lib, but then you notice you broke ln with that.[/QUOTE]
Exactly, use a recovery media which has a copy of ln in tact an viola, one command and you are back up and running.
[QUOTE=nos217;38394948]Changed to Linux Mint. I was getting tired of things breaking.[/QUOTE]
You should probably change your avatar too, then.
Is there any simple way I can type in a Unicode name (e.g. "greek capital letter rho") in urxvt and have the character appear?
Wooo, look what I managed to accomplish:
[t]http://i.imgur.com/Rt5T8.png[/t]
That's right boys and girls, I wrote my own fancy prompt thing, and boy is it fancy.
[b]What it Has:[/b]
- The title bar always stays on top
- Everything dynamically re-sizes based on console size/current path size
- Has my own little thing for the path, that acts just like the "\w" escape sequence,
except it truncates the full path from the back with an ellipsis if it's longer then 50% of the
screen.
- Everything updates every time you hit enter, so you don't have to re-source your bashrc when you re-size the window.
- It has a clock!
[b]What it doesn't have yet, but will:[/b]
- Colors!
- If it's possible to restrict where the console prints, I will make pipes draw down both sides and keep the text between them.
[b]What's possibly broken:[/b]
- There's some funky shit going on with the actual prompt line, that messes it up when you hit backspace or home (the actual command is unaffected, but it looks bad)
And to think that when I started this had virtually zero experience with bash....
[code]
function FixPath()
{
local MyName=~
local TempPath='('$PWD')'
local Sub='~'
Path=${TempPath/$MyName/$Sub}
PathWidth=${#Path}
if [[ $[$PathWidth > $[${COLUMNS} / 2]] -eq '1' ]]
then
local TrunkString="(..."
local StartPos=$[${COLUMNS} - $PathWidth + ${#TrunkString}]
local TempPath=${Path:$StartPos}
Path=$TrunkString$TempPath')'
PathWidth=${#Path}
fi
}
function FixName()
{
local MyName=$USER
local MyHost=$HOSTNAME
FullName="+--["$(date +'%H:%M')" | "$MyName'@'$MyHost']'
NameWidth=${#FullName}
}
function MakeSecondLine()
{
local Start="+-->"
local End="<--+"
SecondLine=''
for ((i=0; i<$[${COLUMNS} - $[${#Start} + ${#End}] ]; i++))
do
SecondLine+=' '
done
SecondLine=$Start"\e[${#SecondLine}C"$End"\e[${#SecondLine}D"
}
function curPos()
{
# found this on some stack-overflow question. No idea how it works....
# based on a script from http://invisible-island.net/xterm/xterm.faq.html
exec < /dev/tty
oldstty=$(stty -g)
stty raw -echo min 0
# on my system, the following line can be replaced by the line below it
echo -en "\033[6n" > /dev/tty
# tput u7 > /dev/tty # when TERM=xterm (and relatives)
IFS=';' read -r -d R -a pos
stty $oldstty
# change from one-based to zero based so they work with: tput cup $row $col
row=$((${pos[0]:2} - 1)) # strip off the esc-[
col=$((${pos[1]} - 1))
}
function MakeBashPrompt()
{
FixPath
FixName
MakeSecondLine
local PromptWidth=${COLUMNS}-$[$NameWidth + $PathWidth]
local Line=''
for ((i=1; i<$[$PromptWidth - 2]; i++))
do
Line+='-'
done
local FinalPrompt=$FullName$Line$Path"--+"
curPos
if [[ $row -ge $[${LINES} - 1] ]]
then
NewRow=2
else
NewRow=0
fi
if [[ $row -eq "0" ]]
then
row="1"
fi
echo -e -n "\e["$NewRow";0H"
echo -e "$FinalPrompt""\e[1B"
echo -e -n "\e["$[$row + 1]";"$[$col]"H"
echo -e "$SecondLine"
echo -e -n "\e[1A\e[4C"
PS1=''
}
PROMPT_COMMAND="MakeBashPrompt"
[/code]
If you guys have any suggestions or comments, please let me know. I wanna make this as cool as humanly possible
P.S. It's supposed to use the fancy box drawing characters instead of the '-' and '+'.
[QUOTE=supervoltage;38393750]Try looking at the distro documentation, maybe? There may be some useful stuff to help. I have no experience with any other distros except Arch.[/QUOTE]
I had a look at the documentation, well, what there was of it...
[url]http://en.wikipedia.org/wiki/Guadalinex[/url]
I apparently have the "Guadalinex EDU" distro, but the terminal, system monitor, "About GNOME button thing, and the ctrl + alt + f1 things say that its ubuntu 10.04, so they havent really changed much.
The [URL="http://es.wikipedia.org/wiki/Guadalinex"]spanish wiki[/URL] has a bit bit more information, but sadly, its in spanish...
Also, I searched the websites wiki, but they didnt have anything on my distro, only the one's they use on the actualy school computers, not these laptops
[QUOTE=awh;38395623]You should probably change your avatar too, then.[/QUOTE]
It can be a heritage to my fruitful youth in the world of Linux.
[QUOTE=WeltEnSTurm;38395519]Deleting /lib for instance because it became a symlink to /usr/lib, but then you notice you broke ln with that.[/QUOTE]
Why would you delete /lib? It doesn't matter that its a symlink, it's still needed.
hey guys I deleted system32 and nothing works anymore
it was supposed to fix a virus!
--WeltEnSTurm
What is a good distro to install on a laptop, in terms of being compatable with the wireless connection, and not consuming too much power? Please suggest something that isn't too big of a jump from windows, as I have little to no linux experience. (also, this isn't a deal breaker, but if the installer could fit on a 700MB CD-R that would be awesome)
I love arch a lot, but it's probably not the right one for you, try Mint.
[QUOTE=TheEyes;38405075]I love arch a lot, but it's probably not the right one for you, try Mint.[/QUOTE]
I will. Just out of curiosity, do you think that I will be able to run Steam on it once steam for linux is released? I don't know how similar this is to ubuntu and if there will be any compatibility issues or not.
Mint's Ubuntu-based, it should work
[QUOTE=Wazbat;38400004]I had a look at the documentation, well, what there was of it...
[url]http://en.wikipedia.org/wiki/Guadalinex[/url]
I apparently have the "Guadalinex EDU" distro, but the terminal, system monitor, "About GNOME button thing, and the ctrl + alt + f1 things say that its ubuntu 10.04, so they havent really changed much.
The [URL="http://es.wikipedia.org/wiki/Guadalinex"]spanish wiki[/URL] has a bit bit more information, but sadly, its in spanish...
Also, I searched the websites wiki, but they didnt have anything on my distro, only the one's they use on the actualy school computers, not these laptops[/QUOTE]
Try these:
[url]http://www.ubuntugeek.com/how-to-recover-password-under-ubuntu.html[/url]
[url]http://www.psychocats.net/ubuntu/resetpassword[/url]
[quote=Ubuntu Forums Member]For grub2, you need to press shift, not ESC. Then boot into recovery mode and follow the rest of the guide. You don't need to edit the grub kernel line as your link suggests.[/quote]
Got a friend of mine that has Ubuntu 12.04 and he uses a netgear [B]n300 wna3100[/B], he can't get his drivers to work.
Any help for him?
[QUOTE=Moofy;38407264]Got a friend of mine that has Ubuntu 12.04 and he uses a netgear [B]n300 wna3100[/B], he can't get his drivers to work.
Any help for him?[/QUOTE]
[url]http://askubuntu.com/questions/86486/usb-network-adaptor-netgear[/url]
It's amazing how i manage to fix my drivers in Ubuntu 12.04 but going to Xubuntu and do the same process sets me back to my silly 27-42 FPS.
Sorry, you need to Log In to post a reply to this thread.